//
//  HotRecommendsModel.m
//  HimalayaMusic
//
//  Created by dllo on 16/1/7.
//  Copyright © 2016年 WXCLegendary. All rights reserved.
//

#import "HotRecommendsModel.h"

@implementation HotRecommendsModel


- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"list"]) {
        NSArray *array = value;
        NSMutableArray *mutableArray = [NSMutableArray array];
        for (NSDictionary * dic in array) {
            HotRecommendListModel *listModel = [[HotRecommendListModel alloc] initWithDictionary:dic];
            [mutableArray addObject:listModel];
            
        }
        
        self.listArray = [NSArray arrayWithArray:mutableArray];
        
    }
    
    
}



- (instancetype)initWithDictionary:(NSDictionary *)data
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:data];
    }
    return self;
}










@end
